package com.ruoyi.app.zzq.mapper;

import com.ruoyi.app.zzq.domain.Team;
import com.ruoyi.app.zzq.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MigrateMapper {
    Team SelectServerByid(@Param("id") String id);

    List<User> SelectServermember(@Param("teamid")String teamid);

    int DisbandServerTeam(@Param("teamid")String teamid);

    int ServerCaptainTransfer(@Param("teamid")String teamid, @Param("userid")String userid, @Param("captain")String captain);

    List<Team> SelectMyServerByid(@Param("id") String ids);

    User SelectUserById(@Param("leaderId") String leaderId);

    User Isjoin(@Param("teamid") String teamid, @Param("userid")String userid);

    int joinServer(@Param("teamid")String teamid, @Param("userid") String s);

    List<String> selectWarmLeaderIds();

    String selectPdeptidByid(@Param("id") String s1);

    String selectTeamidByid(@Param("leaderid") String leaderid);

    boolean joinHeart(@Param("id") String s, @Param("teamid")String teamid);

    List<Team> SelectServerBykey(@Param("key") String key);

    String isTeamLeader(@Param("teamid") String teamid);

    int outHeart(@Param("id") String s);

    int KillTeam(@Param("teamid") String teamid);
    String getNameByid(@Param("id") String id);

    List<User> getHeartMember(@Param("teamid") String teamid);
}
